<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改防疫点信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-place-edit" th:object="${fyPlace}">
            <input name="placeId" th:field="*{placeId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">核酸采样点名称：</label>
                <div class="col-sm-8">
                    <input name="placeName" th:field="*{placeName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">行政区划：</label>
                <div class="col-sm-8">
                    <input name="zone" th:field="*{zone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">核酸点归属社区：</label>
                <div class="col-sm-8">
                    <input name="community" th:field="*{community}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位：</label>
                <div class="col-sm-8">
                    <input name="lnglat" th:field="*{lnglat}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经度：</label>
                <div class="col-sm-8">
                    <input name="lngSjy" th:field="*{lngSjy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">纬度：</label>
                <div class="col-sm-8">
                    <input name="latSjy" th:field="*{latSjy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采样点具体位置：</label>
                <div class="col-sm-8">
                    <input name="addr" th:field="*{addr}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点指挥长名称：</label>
                <div class="col-sm-8">
                    <input name="mgrName" th:field="*{mgrName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点指挥长手机号：</label>
                <div class="col-sm-8">
                    <input name="mgrPhone" th:field="*{mgrPhone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">覆盖人数：</label>
                <div class="col-sm-8">
                    <input name="coverNum" th:field="*{coverNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预估采样单元组数：</label>
                <div class="col-sm-8">
                    <input name="ygcydyzs" th:field="*{ygcydyzs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预估采样团队人数：</label>
                <div class="col-sm-8">
                    <input name="ygcytdrs" th:field="*{ygcytdrs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('fym_place_status')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">签到打卡半径 单位 米：</label>
                <div class="col-sm-8">
                    <input name="signInRadius" th:field="*{signInRadius}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "fym/place";
        $("#form-place-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-place-edit').serialize());
            }
        }
    </script>
</body>
</html>